import request from '../../utils/request.js'

// 登录
export const Login = (data)=>request({
	method:"post",
	url:'/login',
	 data
})

// 注册  /register  post
// ?account=wang&nickname=%E7%8E%8B&password=123456
export const register=(data)=>request({
	method:'post',
	url:"/register",
	params:data
})


// /users/currentUser  get  带请求头
export const userInfo=()=>request({
	method:'get',
	url:'/users/currentUser'
})

 // 退出登录  /logout  
 export const logOut=()=>request({
	 method:'get',
	 url:"/logout"
 })
 
